package com.youbug.mall.product_pms.service;

import com.youbug.mall.product_pms.entity.PmsCategory;
import com.baomidou.mybatisplus.extension.service.IService;
import com.youbug.mall.product_pms.vo.Catelog2Vo;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 商品三级分类 服务类
 * </p>
 *
 * @author youbug
 * @since 2023-05-07
 */
public interface ICategoryService extends IService<PmsCategory> {

    List<PmsCategory> listWithTree();

    boolean deleteById(Long id);

    boolean addCategory(PmsCategory category);

    void cleanCache(boolean delete);

    Long[] findCatalogPath(Long catalogId);

    List<PmsCategory> getLevel1Categorys();

    Map<String, List<Catelog2Vo>> getCatalogJson();
}
